<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglib.jsp"%>
<%@page import="com.gfa4j.resource.ResourceManagerServer"%>
<%@page import="com.wef.common.util.CommonMessageDomain"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/css_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/css_lib.jsp"%>
		<link rel="stylesheet" type="text/css" href="${ctx}/pages/demo/demo.css" />		
		
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp" %>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/format/js_lib.jsp"%>
		<%@include file="/scripts/validate/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jquery-ui/js_lib.jsp"%>
		<%@include file="/scripts/widgets/jqgrid/js_lib.jsp"%>
		<%@include file="/scripts/widgets/page-custom/js_lib.jsp"%>
		<%@include file="/scripts/widgets/datePicker/js_lib.jsp"%>
		<script type="text/javascript" src="${ctx}/pages/demo/demo.js"></script>
		<script type="text/javascript" src="${ctx}/pages/demo/components/tab_utils.js"></script>
		
<title></title>
</head>
<body class="body">
<div id="content_show">
	<div class="Desc">
		功能:创建新tab,如下: (<a href="#" id="aDiv1">新建tab源码</a>)
	</div>
	<div id="div1" style="display: none;">
		window.parent.TabTagUtils.newTab('tab_1','tab_1','pages/demo/single-table/demo_subject.jsp');
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="newBtnTab" text="demo.Tabutils.getNewTab" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
	<div class="Desc">
		功能:关闭tab,如下: (<a href="#" id="aDiv2">关闭当前tab源码</a>)&nbsp;(<a href="#" id="aDiv3">关闭指定ID的tab源码</a>)
	</div>
	<div id="div2" style="display: none;">
		window.parent.TabTagUtils.closeActiveTab();
	</div>
	<div id="div3" style="display: none;">
		window.parent.TabTagUtils.closeActiveTabById ("tab_1");
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="closeBtnActiveTab" text="demo.Tabutils.closeActiveTab" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
			<li>
				<k:button styleId="closeBtnActiveTabById" text="demo.Tabutils.closeActiveTabById" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
	<div class="Desc">
		功能:重建tab,如下: (<a href="#" id="aDiv4">重建tab源码</a>)
	</div>
	<div id="div4" style="display: none;">
		window.parent.TabTagUtils.closeAndNewTab  ('tab_1','tab_1','pages/demo/single-table/demo_subject.jsp');
	</div>
	<div class="ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active">
		<ul class="button_box">
			<li>
				<k:button styleId="closeAndNewBtnTab" text="demo.Tabutils.closeAndNewTab" styleClass="button ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/>
			</li>
		</ul>
	</div>
</div>
</body>
</html>